<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/taglib_include.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, target-densitydpi=medium-dpi, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5, user-scalable=no" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<link href="${ctx}/css/main.css?ver=${main_css_version}" rel="stylesheet" type="text/css" />
<title>${projectTitle }</title>
</head>
<body>
  <header id="main-top">
    <a id="backBtn" href="${ctx}${gotoUri}" style="visibility: hidden;">
      <div id="main-top-left">
        <img src="images/mui_title_back_btn.png" class="img-2">
      </div>
    </a> 
    <div id="main-top-title">生成订单提示</div>
  </header>
  <div id="container">
    <div id="Nticket-tip" style="text-align:center;padding-top:15px;font-size:22pt;color:black;">
        ${msg }
    </div>
    <a id="returnBtn" href="${ctx}${gotoUri}">
      <c:if test="${gotoUri == '/trafficline/index.do'}">
      <div id="determine" style="letter-spacing: 0pt;">返回车票查询</div>
      </c:if>
      <c:if test="${gotoUri == '/order/list.do'}">
      <div id="determine" style="letter-spacing: 0pt;">返回订单列表</div>
      </c:if>
    </a>
  </div>
  <script type="text/javascript" src="${ctx}/js/jquery.min.js?ver=${jquery_min_version}"></script>
  <script type="text/javascript">
  var queryParamString = "?starting=" + localStorage.starting + 
		                 "&startCityId=" + localStorage.startCityId + 
		                 "&startStationId=" + localStorage.startStationId + 
		                 "&startStationsDisabled=" + localStorage.startStationsDisabled + 
		                 "&groupId=" + localStorage.groupId;

  $(function(){
	  var backBtnHref = $('#backBtn').attr('href');
	  var returnBtnHref = $('#returnBtn').attr('href');
	  // 从省际班线查询下单的返回到省际查询页面
	  if (sessionStorage.enquiryncUrl) {
		  backBtnHref = sessionStorage.enquiryncUrl;
		  returnBtnHref = sessionStorage.enquiryncUrl;
		  sessionStorage.removeItem('enquiryncUrl');
	  } else {
		  backBtnHref += queryParamString;
		  returnBtnHref += queryParamString;
	  }

	  $('#backBtn').attr('href', backBtnHref);
	  $('#returnBtn').attr('href', backBtnHref);
  });
  </script>
</body>
</html>